package model

import (
	"time"

	"github.com/jinzhu/gorm"
)

// Task 任务模型
type Task struct {
	gorm.Model
	UID          string
	ProjectID    string
	Name         string
	Intro        string
	Status       uint `gorm:"default:1;comment:'状态[1未开始 2进行中 3已完成 4取消]'"`
	Priority     uint `gorm:"default:3;comment:'优先级[1非常高 2高 3一般 4低]'"`
	Progress     int
	Weight       float64
	Score        float64 `gorm:"default: 0"`
	CreatedBy    string
	ExecuteBy    string
	ReviewBy     string
	ReviewStatus uint `gorm:"default: 0"`
	StartAt      *time.Time
	DeadlineAt   *time.Time
	CompleteAt   *time.Time
}
